package pl.edu.pw.elka.jtrzasko.proz.warcaby.actions.server;

import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;

import pl.edu.pw.elka.jtrzasko.proz.warcaby.messages.server.ServerMessage;
import pl.edu.pw.elka.jtrzasko.proz.warcaby.view.ClientView;

public class ServerActionGameDraw extends ServerAction {
	
	public void run(final ClientView clientView, final ServerMessage message) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				clientView.getTextClientStatus().setText("Draw!");
				JOptionPane.showMessageDialog(clientView, " Draw!",
						"Game Finished", JOptionPane.INFORMATION_MESSAGE);
			}
		});
	}
}
